package cloudPayAdmin.admin.dbapp.repo.hicatcard.distributor;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

import cloudPayAdmin.admin.dbapp.entity.hicatcard.distributor.TDistributorPerson;

public interface DistributorPersonRepo extends JpaRepository<TDistributorPerson, Long>, JpaSpecificationExecutor<TDistributorPerson> {

	
	@Query("select count(*) from TDistributorPerson t where t.distributorId = ?1 and t.createTime >= ?2 and t.createTime <= ?3")
	public Long countByDistributorAndCreateTime(Long distributorId,String minCreateTime,String maxCreateTime);

}
